import { ApiBase, Route, src, resHtml, valid } from 'koacat'
import { App, Ctx } from '../../app'

export class AnalysisApi extends ApiBase<App, Ctx> {
  constructor(app: App) {
    super(app)
    app.vite.include('analysis', src('/services/analysis/analysis.vue'))
  }

  public routes: Route<Ctx>[] = [{
    tags: ['view'],
    path: '/analysis',
    middlewares: [],
    get: async (ctx: Ctx) => resHtml(ctx, await this.app.vite.render('analysis', {}, '归因分析'))
  }]


}
